package com.nulldev.util.java.nFileBrowser;

import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Insets;

import javax.swing.JFrame;
import javax.swing.border.Border;

import com.nulldev.util.java.nFileBrowser.preview.PreviewFactory;
import com.nulldev.util.java.nFileBrowser.ui.SystemViewerView;
import com.nulldev.util.java.swing.extSwing.lookandfeel.themes.Theme;
import com.nulldev.util.java.swing.extSwing.lookandfeel.themes.ThemeApplier;
import com.nulldev.util.java.swing.font.FontManager;

public class nFileBrowserDemo {

	public static void main(String[] args) {
		FontManager.setFont(FontManager.getFonts("MADE Evolve Sans", "Biko", "Highway Gothic", "Young", "Traffic"), 16);
		ThemeApplier.defaultTheme = Theme.TERMINAL;
		final BrowserController cnt = new BrowserController(new PreviewFactory());
		final SystemViewerView sysv = new SystemViewerView();
		ThemeApplier.applyTheme(sysv);
		final JFrame jfr = new JFrame("Test");
		ThemeApplier.applyTheme(jfr);
		jfr.setLayout(new BorderLayout());
		jfr.add(sysv, BorderLayout.CENTER);
		jfr.setSize(640, 480);
		jfr.setVisible(true);
		jfr.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//		final JFrame jfr = cnt.createGUI();
//		ThemeApplier.applyTheme(jfr);
//		jfr.setVisible(true);
//		jfr.setResizable(true);
//		jfr.setSize(650, 480);
	}

}
